Imports System.ComponentModel.DataAnnotations
Imports System.Data.Entity

Public Class <Database>DBContext
    Inherits DbContext
    Protected Overrides Sub OnModelCreating(modelBuilder As DbModelBuilder)
        MyBase.OnModelCreating(modelBuilder)

    <RTable Loop>
        modelBuilder.Entity(Of <OwnerU>_<TableU>)().ToTable("<OwnerU>.<TableU>")
    </RTable Loop>
    End Sub

    <RTable Loop>
    Public Property <OwnerU>_<TableU>() As DbSet(Of <OwnerU>_<TableU>)

    </RTable Loop>

End Class